package com.situ.web.servlet;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.situ.web.service.IManagerService;
import com.situ.web.service.impl.ManagerServiceImpl;

public class ManagerServlet extends HttpServlet {
	private IManagerService managerService = new ManagerServiceImpl();
@Override
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		List<Map<String, Object>> list = managerService.findAllMap();
		System.out.println(list);
		req.setAttribute("list", list);
		req.getRequestDispatcher("/student_banji_course.jsp").forward(req, resp);
	}
}
